import request from '@/utils/request'

// 获取品牌列表
export const reqGetTradeMarkList = (page, limit) =>
  request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
  })

// 添加或修改品牌
export const reqAddOrEditTradeMark = (data) =>
  request({
    url: data.id
      ? '/admin/product/baseTrademark/update'
      : '/admin/product/baseTrademark/save',
    method: data.id ? 'put' : 'post',
    data
  })

export const reqDelTradeMark = (id) =>
  request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: 'DELETE'
  })
